/**
 * @某个模块下的路由:
 */
import Layout from "@/layout";
export { Layout };
import i18n from "@/i18n/index";
const Review = () => import(/* webpackChunkName: "review" */ "views/review/index");
const ReviewApply = () => import(/* webpackChunkName: "review" */ "views/review/apply");
const ReviewDetail = () => import(/* webpackChunkName: "review" */ "views/review/detail");

const Home = () => import(/* webpackChunkName: "Home" */ "views/home/index");
const Demo = () => import(/* webpackChunkName: "Home" */ "views/demo/demo1");
const TouchList = () => import(/* webpackChunkName: "Touch" */ "views/touch/index");
const TouchDeatil = () => import(/* webpackChunkName: "Touch" */ "views/touch/detail");
const TouchInsert = () => import(/* webpackChunkName: "Touch" */ "views/touch/insert");
const MsgTemplatePreview = () => import(/* webpackChunkName: "Touch" */ "views/touch/msgTemplatePreview");
const TouchDemo = () => import(/* webpackChunkName: "Touch" */ "views/touch/touch");
export default {
  //默认展示的侧边栏界面
  default: [
    {
      path: "/",
      component: Layout,
      redirect: "/home",
      children: [
        {
          path: "/home",
          name: "home",
          component: Home,
          meta: { title: i18n.t("空间"), icon: "&#xe628;" },
        },
        // {
        //   path: "/demo1",
        //   name: "demo",
        //   component: Demo,
        //   meta: { title: i18n.t("demo"), icon: "&#xe628;" },
        // },
        // {
        //   path: "/indexTags",
        //   name: "indexTags",
        //   component: IndexTags,
        //   meta: { title: i18n.t("indexTags"), icon: "&#xe628;" },
        // },
      ],
    },
    {
      path: "/apply",
      component: Layout,
      children: [
        {
          path: "",
          name: "reviewApply",
          component: ReviewApply,
          meta: { title: i18n.t("申请列表"), icon: "&#xe668;" },
        },
      ],
    },
    {
      path: "/review",
      component: Layout,
      children: [
        {
          path: "",
          name: "reviewList",
          component: Review,
          meta: { title: i18n.t("审核列表"), icon: "&#xe715;" },
        },
      ],
    },
    {
      path: "/review/detail",
      component: ReviewDetail,
      children: [
        {
          hidden: true,
          path: ":id",
          name: "reviewDetail",
        },
      ],
    },

    {
      path: "/space/touch",
      component: Layout,
      children: [
        {
          hidden: true,
          path: "list/:spaceId",
          name: "touchList",
          component: TouchDemo,
          meta: { title: i18n.t("触达任务列表"), icon: "&#xe602;", activeMenu: "/home" },
        },
        {
          hidden: true,
          path: "detail",
          name: "touchDetail",
          component: TouchDeatil,
          meta: { title: i18n.t("触达任务详情"), icon: "&#xe602;", activeMenu: "/home" },
        },
        {
          hidden: true,
          path: "insert",
          name: "touchInsert",
          component: TouchInsert,
          meta: { title: i18n.t("触达任务新增页面"), icon: "&#xe602;", activeMenu: "/home" },
        },
      ],
    },
    {
      path: "/space/msgTemplatePreview",
      component: MsgTemplatePreview,
      hidden: true,
    },
  ],

  //空间下的界面
  space1: [],
};
